package com.baofu.paycore.dal.mapper;

import com.baofu.paycore.dal.mapper.base.GenericMapper;
import com.baofu.paycore.dal.model.SubPreAuthDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 预授权资金单Mapper
 *
 * <p>
 *  1.依支付单号查询预授权资金单信息
 * </p>
 * User: xin deng  Date: 16/8/30 ProjectName: paycore Version: 1.0
 */
public interface SubPreAuthMapper extends GenericMapper<SubPreAuthDO>{

    /**
     * 依支付单号查询预授权资金单信息
     *
     * @param payNo     支付单号
     * @return          预授权资金单信息
     */
    SubPreAuthDO selectSubPreAuthByPayNo(@Param("payNo") String payNo, @Param("fundType") String fundType);

    List<SubPreAuthDO> selectSubsByPayNo(@Param("payNo") String payNo);
}
